ioemu: COW driver flush method should return an int.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Apr 2008 15:04:30 +0000 (16:04 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Apr 2008 15:04:30 +0000 (16:04 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/ioemu/block-cow.c

index 07c8a7bf167a704b835ad44ae2a82b37cc70da6d..eeee9a1cc43ed3e670630810ecd8c371d005602a 100644 (file)
@@ -246,10 +246,11 @@ static int cow_create(const char *filename, int64_t image_sectors,
     return 0;
 }
 
-static void cow_flush(BlockDriverState *bs)
+static int cow_flush(BlockDriverState *bs)
 {
     BDRVCowState *s = bs->opaque;
     fsync(s->fd);
+    return 0;
 }
 
 BlockDriver bdrv_cow = {